using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class admin_webparts_Plug_ins_Panel_PanelList : System.Web.UI.UserControl
{
    public NTTHAO.Web.BL.Panel.PanelGroup _Group = null;
    public DataTable _ImageList = null;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            try
            {
                int groupID = Int32.Parse(Request.QueryString["groupid"]);
                NTTHAO.Web.BL.Panel.PanelGroup group = new NTTHAO.Web.BL.Panel.PanelGroup(groupID);
                if (group.ID > 0)
                {
                    _Group = group;

                    NTTHAO.Web.BL.Panel.Panel detail = new NTTHAO.Web.BL.Panel.Panel();
                    DataSet ds = detail.GetAllByGroup(group.ID);

                    if (ds != null && ds.Tables.Count > 0)
                    {
                        _ImageList = ds.Tables[0];
                    }
                }
            }
            catch (Exception)
            {

            }
        }
    }
}
